package com.cockybook.poemspider;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

@EnableAutoConfiguration
@SpringBootApplication
public class SpiderBatchApplication {

    private static final Logger logger = LoggerFactory.getLogger(SpiderBatchApplication.class);

    /**
     * 从朝代开始 -> 到诗人-> 诗
     * @param args
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {
        // System.exit is common for Batch applications since the exit code can be used to
        // drive a workflow
        logger.info("======================");
        System.exit(SpringApplication
                .exit(SpringApplication.run(SpiderBatchApplication.class, args)));
    }

}